package models

import "time"

type Model struct {
	ID        uint      `json:"id" gorm:"primaryKey"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"-"`
}

type IDRequest struct {
	ID uint `json:"id" form:"id" uri:"id"`
}
type IDListRequest struct {
	IDList []uint `json:"idList" `
}

// 分页查询参数
type Page struct {
	Page  int    `json:"page" form:"page"`
	Limit int    `json:"limit" form:"limit"`
	Order string `json:"order" form:"order"`
	Key   string `json:"key" form:"key"`
}

type Options[T any] struct {
	Label string `json:"label"`
	Value T      `json:"value"`
}
